-
It is a trait that requires implementing a single method:
next.
pub trait Iterator {
type Item;
fn next(&mut self) -> Option<Self::Item>;
}
It is a trait that requires implementing a single method:
next
.
pub trait Iterator {
type Item;
fn next(&mut self) -> Option<Self::Item>;
}